home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
buttons
/
espin
/
form1.frm
< prev
next >
Wrap
Text File
|
1995-07-19
|
4KB
|
138 lines
VERSION 2.00
Begin Form Form1
Caption = "Enhanced Spin Demo"
ClientHeight = 3315
ClientLeft = 1215
ClientTop = 1605
ClientWidth = 5445
Height = 3750
Left = 1140
LinkTopic = "Form1"
ScaleHeight = 3315
ScaleWidth = 5445
Top = 1245
Width = 5595
Begin TextBox Text2
Height = 285
Left = 840
TabIndex = 1
Text = "0"
Top = 600
Width = 975
End
Begin TextBox Text1
FontBold = -1 'True
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 13.5
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 495
Left = 840
TabIndex = 0
Text = "0"
Top = 1620
Width = 1335
End
Begin Label Label3
Caption = "Click and hold on the up or down arrows. Click on the center segment and drag up or down . Try the other mouse button, too."
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 675
Left = 840
TabIndex = 4
Top = 2340
Width = 3015
End
Begin Label Label2
Caption = "This is what it looks like with the bitmap ""stretched"""
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 435
Left = 840
TabIndex = 3
Top = 1140
Width = 2535
End
Begin Label Label1
Caption = "This is the ""natural"" size of the button"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Left = 840
TabIndex = 2
Top = 300
Width = 2895
End
Begin Image Image2
BorderStyle = 1 'Fixed Single
Height = 300
Left = 1800
Picture = FORM1.FRX:0000
Top = 600
Width = 195
End
Begin Image Image1
BorderStyle = 1 'Fixed Single
Height = 495
Left = 2160
Picture = FORM1.FRX:010A
Stretch = -1 'True
Top = 1620
Width = 375
End
End
Option Explicit
Sub Form_Load ()
' you need to load the ESpin form at startup:
Load FrmESpin
End Sub
Sub Form_Unload (Cancel As Integer)
Unload FrmESpin
End
End Sub
Sub Image1_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
' 3rd parameter is always the name of *this* control
' 4th parameter is name of the e.g. textbox to spin
JDMouseDown Button, Y, Image1, Text1
End Sub
Sub Image1_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
' 2nd parameter is the name of *this* control
JDMouseMove Y, Image1, Button
End Sub
Sub Image1_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
JDMouseUp
End Sub
Sub Image2_MouseDown (Button As Integer, Shift As Integer, X As Single, Y As Single)
' 3rd parameter is always the name of *this* control
' 4th parameter is name of the e.g. textbox to spin
JDMouseDown Button, Y, Image2, Text2
End Sub
Sub Image2_MouseMove (Button As Integer, Shift As Integer, X As Single, Y As Single)
JDMouseMove Y, Image2, Button
End Sub
Sub Image2_MouseUp (Button As Integer, Shift As Integer, X As Single, Y As Single)
JDMouseUp
End Sub